/********************************************************************************
 *      Copyright:  (C) 2024 LiYi<1751425323@qq.com>
 *                  All rights reserved.
 *
 *       Filename:  database.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(18/04/24)
 *         Author:  LiYi <1751425323@qq.com>
 *      ChangeLog:  1, Release initial version on "18/04/24 20:40:09"
 *                 
 ********************************************************************************/

#include "socket_pack.h"

int database_init(const char *db_file);

//void sql_clear(void);

void sql_close(void);


int database_insert(void *buf, int buf_len);

int database_query_and_clear(int fd);

